export default {
  data() {
    return {
      navName: 'homepage',
      portalnavS: [
        { label: '首页', name: 'homepage', id: 99 },
        { label: '产品中心', name: 'productcenter', id: 1 },
        { label: '行业案例', name: 'industrycase', id: 2 },
        { label: '渠道加盟', name: 'channeljoining', id: 3 },
        { label: '会计家园', name: 'accountinghome', id: 4 },
        { label: '新闻动态', name: 'newsinformation', id: 5 },
        { label: '关于我们', name: 'aboutus', id: 6 },
      ],
      isLoginInput: false,
      portalSrc: '',
      src: 'http://8.142.139.164:57000/',
      kjsrc: 'https://kuaiji.yundaizhang.com.cn:8862'
    };
  },
  methods: {
    handleClick() {
      let v = Math.random() * 100;
      this.portalSrc = `${this.src}${this.navName}?v=${v}`;
      if(this.navName == 'accountinghome') this.portalSrc = `${this.kjsrc}?v=${v}`;
      
    }
  },
  mounted () {
    this.handleClick();
  }
};
